home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NetNews Offline 2
/
NetNews Offline Volume 2.iso
/
news
/
comp
/
std
/
c
/
690
< prev
next >
Wrap
Internet Message Format
|
1996-08-06
|
1KB
Path: news.crd.ge.com!usenet
From: Christopher R Volpe <volpe@ash.crd.ge.com>
Newsgroups: comp.std.c
Subject: Re: Nested MACROS ??
Date: Tue, 02 Apr 1996 16:32:22 -0500
Organization: GE Corporate Research & Development, Schenectady, NY
Message-ID: <31619CE6.4284@ash.crd.ge.com>
References: <4jgkno$mrr@aplinfo.jhuapl.edu>
NNTP-Posting-Host: bart.crd.ge.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.4 sun4m)
To: Stan Novinsky <stan_novinsky@jhuapl.edu>
Stan Novinsky wrote:
>
> I am using a nested MACRO. The problem is that only the
> inner part is execur
>
> Given the following MACRO definitions and code,
>
> #define CUBE(X) ((x * x) * x)
> #define ABS(X) ((x < 0) ? -(x) : (x))
>
> #define NEST(X) (ABS(CUBE(X)))
It would probably help if you didn't mix'n'match capital X's and
lowercase x's in your macro "prototype" and replacement list.
--
Chris Volpe Phone: (518) 387-7766 (Dial Comm 8*833
GE Corporate R&D Fax: (518) 387-6560
PO Box 8, Schenectady, NY 12301 Email: volpecr@crd.ge.com